package com.xbongbong.pro.statistic.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * @author zhouwq
 * @date 2019/5/29 19:11
 */

@Getter
public enum ChartAggNameEnum {


    /**
     * 聚合的层级类型
     */

    AGG_FIRST("agg1","enum.hartAggName.describe.agg_first"),

    AGG_SECOND("agg2","enum.hartAggName.describe.agg_second"),

    CHILD_AGG_FIRST("child_agg1","enum.hartAggName.describe.child_agg_first"),

    CHILD_AGG_SECOND("child_agg2","enum.hartAggName.describe.child_agg_second"),

    SUM_TOTAL("sum_total","enum.hartAggName.describe.sum_total")
    ;

    /**
     * 字段值
     */
    private final String str;
    /**
     * 字段描述
     */
    private final String describe;


    ChartAggNameEnum(String str, String describe){
        this.str = str;
        this.describe = describe;
    }

    public String getDescribe() {
        return I18nMessageUtil.getMessage(describe);
    }

}
